package ru.papergames.controller.commands
{
	import org.puremvc.as3.interfaces.INotification;
	import ru.papergames.controller.commands.BaseCommand;
	import ru.papergames.model.proxies.LoginProxy;
	import ru.papergames.model.proxies.RegistrationProxy;
	import ru.papergames.utils.constants.ConfigKeys;
	

	public class InitializeRootModelCommand extends BaseCommand
	{
		override public function execute(notification:INotification):void {
			
			facade.registerProxy(new LoginProxy(this.settingsProxy.getProperty(ConfigKeys.LOGON_URL)));	
			facade.registerProxy(new RegistrationProxy(this.settingsProxy.getProperty(ConfigKeys.REGISTRATION_URL)));						
						
		}
		
	}
}